package com.sky.mapper;

import com.sky.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EmployeeMapper {


    @Select("select * from employee where username = #{username}")
    Employee getByUsername(String username);

    @Select("select * from employee where phone = #{phone}")
    Employee getByPhone(String phone);

    @Select("select * from employee where id_number = #{idNumber}")
    Employee getByIdNumber(String idNumber);

    void insert(Employee empPO);
}
